package nc.ui.mmpac.sumpickm.handler.head;

import nc.ui.mmf.framework.handler.MMBaseHandler;
import nc.ui.mmf.framework.handler.MMEventHandler;
import nc.ui.pubapp.uif2app.event.IAppEventHandler;
import nc.ui.pubapp.uif2app.event.card.CardHeadTailBeforeEditEvent;
import nc.util.mmf.framework.base.MMValueCheck;
import nc.vo.mmpac.sumpickm.entity.SumPickmHeadVO;

public class SumPickmCardHeadBeforeEditHandler extends MMEventHandler implements
        IAppEventHandler<CardHeadTailBeforeEditEvent> {

    @Override
    public void handleAppEvent(CardHeadTailBeforeEditEvent e) {
    	  MMBaseHandler handler = this.getHandler(e.getKey());
          if (!MMValueCheck.isEmpty(handler)) {
              handler.beforeEdit(e);
          }	
    }

    @Override
    public void initMap() {
    	  this.putHandler(SumPickmHeadVO.CSUMPICKMTYPE, SumPickmCardHeadSumPickmTypeHandler.class);
    }

}
